<?php
//Start de sessie
session_start();

// Database connection
include 'includes/connect.php';

// Encodeer het id-nummer uit de URL
if(isset($_GET['id']) && is_numeric($_GET['id']))
{
    $id=$_GET['id'];
    // Retrieve all the data from the table
    $result = mysql_query("SELECT * FROM product WHERE productid='". $_GET['id'] ."'")
    or die(mysql_error());
}

if(isset($_SESSION['winkelwagen']["$id"]))     unset($_SESSION['winkelwagen']["$id"]);

header("Location: view_cart.php");

?>